package com.lingxu.api.ztb.mapper;

import com.lingxu.api.ztb.model.ZtbProject;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lingxu.api.ztb.model.vo.ZTBProjectInfo;
import com.lingxu.api.ztb.model.vo.ZtbParagraphVO;
import com.lingxu.api.ztb.model.vo.ZtbProjectVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;


import java.util.List;

/**
 * 项目信息表 Mapper接口
 *
 * @author admin
 * @since 2025-07-18
 */
@Mapper
public interface ZtbProjectMapper extends BaseMapper<ZtbProject> {
    /**
     * 查询项目信息表
     *
     * @return
     */
    List<ZtbProjectVO> selectZtbProjectList(@Param("query") ZtbProjectVO vo);

    IPage<ZtbProjectVO> pageList(@Param("page") Page<ZtbProjectVO> page, @Param("query") ZtbProjectVO vo);

    List<ZtbProjectVO> getDataForExport(@Param("query") ZtbProjectVO vo);

    void createTempTable(@Param("batchFlag")String batchFlag);
    void insertTempTable(@Param("list") List<ZtbProjectVO> dataList, @Param("batchFlag")String batchFlag);
    void insertTable(@Param("batchFlag")String batchFlag);
    void dropTempTable(@Param("batchFlag")String batchFlag);
    void deleteAll();

    String getZtbProjectIdByProjectName(@Param("projectname") String projectname);

    IPage<ZTBProjectInfo> getZtbProjectIdByProjectNameNew(@Param("page") Page<ZTBProjectInfo> page, @Param("query") ZtbParagraphVO query);

//    IPage<ZTBProjectInfo> getZtbProjectIdByProjectNameNew(String projectname);
}
